package com.zh.common.dao;


import com.zh.common.domain.UserDO;
import com.zh.common.vo.CompanyUserVO;
import com.zh.common.vo.FamilyUserVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 
 * @author lds
 * @email 1992lcg@163.com
 * @date 2019-05-23 14:28:49
 */
@Mapper
public interface UserDao {

	UserDO get(String userId);

	UserDO getByUserName(Map<String, Object> map);

	List<UserDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(UserDO user);
	
	int update(UserDO user);
	
	int remove(String user_id);
	
	int batchRemove(String[] userIds);

	CompanyUserVO getCompanyUser(Map<String, Object> map);

	FamilyUserVO getFamilyUser(Map<String, Object> map);
//
//	int updateByFamilyUserVO(FamilyUserVO user);
//
//	int saveByFamilyUserVO(FamilyUserVO familyUserVO);
}
